﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetServerandInstances" targetNamespace="http://tempuri.org/DataSetServerandInstances.xsd" xmlns:mstns="http://tempuri.org/DataSetServerandInstances.xsd" xmlns="http://tempuri.org/DataSetServerandInstances.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection ConnectionStringObject="Data Source=SEREENA-PC\SEREENASQL2008;Initial Catalog=SQLServerHealthCheckDeploy;Integrated Security=True;Pooling=False" IsAppSettingsProperty="false" Modifier="Assembly" Name="sereena-pc\sereenasql2008.SQLServerHealthCheckDeploy.dbo" ParameterPrefix="@" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ServerandInstancesTableAdapter" GeneratorDataComponentClassName="ServerandInstancesTableAdapter" Name="ServerandInstances" UserDataComponentName="ServerandInstancesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="sereena-pc\sereenasql2008.SQLServerHealthCheckDeploy.dbo" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        Server.Name AS Server, Server.ProcessorCount, Server.ProcessorType, Server.MemoryInGB, Server.OSVersion,
                       Service.Name AS Instance, ServiceType.Description AS Type, Service.LogOnAs AS ServiceAccount, Service.StartMode, Service.Edition, 
                         Service.ProductVersion AS Version,Service.Description  
                         AS [Description], dbo.GetLatestVersionFromProductVersion(REPLACE(CAST(SERVERPROPERTY('ProductVersion') AS varchar(13)), '.00.', '.0.')) AS LatestVersion, 
                         dbo.GetDescriptionFromProductVersion(dbo.GetLatestVersionFromProductVersion(REPLACE(CAST(SERVERPROPERTY('ProductVersion') AS varchar(13)), '.00.', '.0.'))) 
                         AS LatestDescription
FROM            Server INNER JOIN
                  
                         Service LEFT OUTER JOIN
                         ServiceType ON Service.ServiceTypeID = ServiceType.ServiceTypeID ON Server.ServerID = Service.ServerID</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Server" DataSetColumn="Server" />
              <Mapping SourceColumn="ProcessorCount" DataSetColumn="ProcessorCount" />
              <Mapping SourceColumn="ProcessorType" DataSetColumn="ProcessorType" />
              <Mapping SourceColumn="MemoryInGB" DataSetColumn="MemoryInGB" />
              <Mapping SourceColumn="OSVersion" DataSetColumn="OSVersion" />
              <Mapping SourceColumn="Instance" DataSetColumn="Instance" />
              <Mapping SourceColumn="Type" DataSetColumn="Type" />
              <Mapping SourceColumn="ServiceAccount" DataSetColumn="ServiceAccount" />
              <Mapping SourceColumn="StartMode" DataSetColumn="StartMode" />
              <Mapping SourceColumn="Edition" DataSetColumn="Edition" />
              <Mapping SourceColumn="Version" DataSetColumn="Version" />
              <Mapping SourceColumn="Description" DataSetColumn="Description" />
              <Mapping SourceColumn="LatestVersion" DataSetColumn="LatestVersion" />
              <Mapping SourceColumn="LatestDescription" DataSetColumn="LatestDescription" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetServerandInstances" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSetServerandInstances" msprop:Generator_UserDSName="DataSetServerandInstances">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ServerandInstances" msprop:Generator_TableClassName="ServerandInstancesDataTable" msprop:Generator_TableVarName="tableServerandInstances" msprop:Generator_TablePropName="ServerandInstances" msprop:Generator_RowDeletingName="ServerandInstancesRowDeleting" msprop:Generator_UserTableName="ServerandInstances" msprop:Generator_RowChangingName="ServerandInstancesRowChanging" msprop:Generator_RowEvHandlerName="ServerandInstancesRowChangeEventHandler" msprop:Generator_RowDeletedName="ServerandInstancesRowDeleted" msprop:Generator_RowEvArgName="ServerandInstancesRowChangeEvent" msprop:Generator_RowChangedName="ServerandInstancesRowChanged" msprop:Generator_RowClassName="ServerandInstancesRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Server" msprop:Generator_ColumnVarNameInTable="columnServer" msprop:Generator_ColumnPropNameInRow="Server" msprop:Generator_ColumnPropNameInTable="ServerColumn" msprop:Generator_UserColumnName="Server" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ProcessorCount" msprop:Generator_ColumnVarNameInTable="columnProcessorCount" msprop:Generator_ColumnPropNameInRow="ProcessorCount" msprop:Generator_ColumnPropNameInTable="ProcessorCountColumn" msprop:Generator_UserColumnName="ProcessorCount" type="xs:int" minOccurs="0" />
              <xs:element name="ProcessorType" msprop:Generator_ColumnVarNameInTable="columnProcessorType" msprop:Generator_ColumnPropNameInRow="ProcessorType" msprop:Generator_ColumnPropNameInTable="ProcessorTypeColumn" msprop:Generator_UserColumnName="ProcessorType" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="200" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MemoryInGB" msprop:Generator_ColumnVarNameInTable="columnMemoryInGB" msprop:Generator_ColumnPropNameInRow="MemoryInGB" msprop:Generator_ColumnPropNameInTable="MemoryInGBColumn" msprop:Generator_UserColumnName="MemoryInGB" type="xs:int" minOccurs="0" />
              <xs:element name="OSVersion" msprop:Generator_ColumnVarNameInTable="columnOSVersion" msprop:Generator_ColumnPropNameInRow="OSVersion" msprop:Generator_ColumnPropNameInTable="OSVersionColumn" msprop:Generator_UserColumnName="OSVersion" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Instance" msprop:Generator_ColumnVarNameInTable="columnInstance" msprop:Generator_ColumnPropNameInRow="Instance" msprop:Generator_ColumnPropNameInTable="InstanceColumn" msprop:Generator_UserColumnName="Instance" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_UserColumnName="Type" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ServiceAccount" msprop:Generator_ColumnVarNameInTable="columnServiceAccount" msprop:Generator_ColumnPropNameInRow="ServiceAccount" msprop:Generator_ColumnPropNameInTable="ServiceAccountColumn" msprop:Generator_UserColumnName="ServiceAccount" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="StartMode" msprop:Generator_ColumnVarNameInTable="columnStartMode" msprop:Generator_ColumnPropNameInRow="StartMode" msprop:Generator_ColumnPropNameInTable="StartModeColumn" msprop:Generator_UserColumnName="StartMode" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Edition" msprop:Generator_ColumnVarNameInTable="columnEdition" msprop:Generator_ColumnPropNameInRow="Edition" msprop:Generator_ColumnPropNameInTable="EditionColumn" msprop:Generator_UserColumnName="Edition" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Version" msprop:Generator_ColumnVarNameInTable="columnVersion" msprop:Generator_ColumnPropNameInRow="Version" msprop:Generator_ColumnPropNameInTable="VersionColumn" msprop:Generator_UserColumnName="Version" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="13" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" msprop:Generator_UserColumnName="Description" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LatestVersion" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnLatestVersion" msprop:Generator_ColumnPropNameInRow="LatestVersion" msprop:Generator_ColumnPropNameInTable="LatestVersionColumn" msprop:Generator_UserColumnName="LatestVersion" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="13" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LatestDescription" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnLatestDescription" msprop:Generator_ColumnPropNameInRow="LatestDescription" msprop:Generator_ColumnPropNameInTable="LatestDescriptionColumn" msprop:Generator_UserColumnName="LatestDescription" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>